<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="Template">
        <xsl:variable name="version" select="version"/>
        <body style="margin: 0px; padding: 0px; font: .8em/ 1.6em Arial; background-color: #D9ECFD;">
            <fieldset style="border:1px solid #C0C0C0;margin:10px;padding:10px;">
                <legend
                        style="-x-system-font:none;color:blue;font-family:Verdana,Tahoma,Helvetica,sans-serif;font-size:12pt;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:bold;line-height:1.6em;margin:0;padding:0px;">
                    Update Switch MAC and Model Message
                </legend>
                <br/>
                <table>
                    <tr>
                        <td style="font-family:Arial, Helvetica, sans-serif;font-size:10pt;font-weight:bold; white-space: nowrap;">
                            Total
                        </td>
                        <td style="font-weight:bold;">:</td>
                        <td style="font-family:Arial, Helvetica, sans-serif;font-size:10pt;">
                            <xsl:value-of select="TOTAL"/>
                        </td>
                    </tr>
                    <tr>
                        <td style="font-family:Arial, Helvetica, sans-serif;font-size:10pt;font-weight:bold; white-space: nowrap;">
                            Update Time
                        </td>
                        <td style="font-weight:bold;">:</td>
                        <td style="font-family:Arial, Helvetica, sans-serif;font-size:10pt;">
                            <xsl:value-of select="PROV_TIME"/>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3"
                            style="font-family:Arial, Helvetica, sans-serif;font-size:10pt;font-weight:bold; white-space: nowrap;">
                            Update Switch MAC and Model List :
                        </td>
                    </tr>
                </table>
                <table cellpadding="0" cellspacing="0"
                       style="-x-system-font:none;border:1px solid #C0C0C0;border-collapse:collapse;border-spacing:0;font-family:Verdana,Tahoma,Helvetica,sans-serif;font-size:10pt;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:normal;line-height:1.6em;margin:0px;">
                    <tr bgcolor="#DEEFFF" align="center">
                        <th style="background-color: #D8D8D8; border: 1px solid #C0C0C0; padding: 2px; white-space: nowrap;">
                            Switch IP
                        </th>
                        <th style="background-color: #D8D8D8; border: 1px solid #C0C0C0; padding: 2px; white-space: nowrap;">
                            Mac in DB
                        </th>
                        <th style="background-color: #D8D8D8; border: 1px solid #C0C0C0; padding: 2px; white-space: nowrap;">
                            Model in DB
                        </th>
                        <th style="background-color: #D8D8D8; border: 1px solid #C0C0C0; padding: 2px; white-space: nowrap;">
                            Snmp Mac
                        </th>
                        <th style="background-color: #D8D8D8; border: 1px solid #C0C0C0; padding: 2px; white-space: nowrap;">
                            Snmp Model
                        </th>
                    </tr>
                    <xsl:for-each select="LIST/row">
                        <tr>
                            <td style="border:1px solid #C0C0C0;padding:2px;white-space:nowrap;">
                                <xsl:value-of select="SWITCHIP"/>
                            </td>
                            <td style="border:1px solid #C0C0C0;padding:2px;white-space:nowrap;">
                                <xsl:value-of select="SWITCHMAC"/>
                            </td>
                            <td style="border:1px solid #C0C0C0;padding:2px;white-space:nowrap;">
                                <xsl:value-of select="SWITCHMODEL"/>
                            </td>
                            <td style="border:1px solid #C0C0C0;padding:2px;white-space:nowrap;">
                                <xsl:value-of select="SNMPMAC"/>
                            </td>
                            <td style="border:1px solid #C0C0C0;padding:2px;white-space:nowrap;">
                                <xsl:value-of select="SNMPMODEL"/>
                            </td>
                        </tr>
                    </xsl:for-each>
                </table>
                <table>
                    <tr>
                        <td colspan="3"
                            style="font-family:Arial, Helvetica, sans-serif;font-size:10pt;font-weight:bold; white-space: nowrap;">
                            <xsl:value-of select="NODATA"/>
                        </td>
                    </tr>
                </table>
            </fieldset>
        </body>
    </xsl:template>
</xsl:stylesheet>